package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 充电订单费用明细表
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_order_cost_detail")
@ApiModel(value = "WoOrderCostDetail对象", description = "充电订单费用明细表")
public class WoOrderCostDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单Id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private String startTime;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private String endTime;

    @ApiModelProperty("电量(度)")
    @TableField("electric_value")
    private BigDecimal electricValue;

    @ApiModelProperty("时段类型：1：尖时段；2：峰时段 3：平时段，4：谷时段")
    @TableField("time_type")
    private Integer timeType;

    @ApiModelProperty("服务费单价")
    @TableField("service_amount")
    private BigDecimal serviceAmount;

    @ApiModelProperty("基本电费")
    @TableField("electric_amount")
    private BigDecimal electricAmount;

    @ApiModelProperty("时段电费总价")
    @TableField("total_electric_amount")
    private BigDecimal totalElectricAmount;

    @ApiModelProperty("时段服务费总价")
    @TableField("total_service_amount")
    private BigDecimal totalServiceAmount;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
